package com.lagou.edu.fegin;

import com.lagou.edu.fegin.fallback.AuthCodeServiceClientFallback;
import com.lagou.edu.vo.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 赵虎
 * @date 2021/2/22 11:02 上午
 */
@FeignClient(value = "lagou-scn-code", fallback = AuthCodeServiceClientFallback.class)
public interface IAuthCodeServiceClient {

    @GetMapping("/code/validate/{email}/{code}")
    public ResultVO validateAuthCode(@PathVariable("email") String email, @PathVariable("code") String code);
}
